Method and apparatus for controlling data access rate of an optical disc driver

ABSTRACT

A method and an apparatus for controlling data access rate of an optical disc player are disclosed. The method includes steps of (1) utilizing a micro-controller to decide whether an action of an instruction of a predetermined data processing is an extraction operation or a play operation; (2) driving the spindle motor and a pick-up head to retrieve data from an optical disc at a first data access rate by the micro-controller while the action of the instruction of the predetermined data processing is an extraction operation; and (3) driving the spindle speed and the pick-up head to retrieve data from the optical disc at a second data access rate which is less than the first data access rate by the micro-controller while the action of the instruction of the predetermined data processing is a play operation.

BACKGROUND OF INVENTION

1. Field of the Invention

This invention relates to a method for controlling an optical disc player. Specifically, it relates to a method for controlling data accessing rate of the optical disc player.

2. Description of the Prior Art

The management and storage of documents is very important for a company or an individual. In the past, most data record on the paper. It is inconvenient, especially a great deal of data, large volume and heavy weight. Now, the digital data is utilized and stored generally in the storage media of a computer. A variety of storage media are born in order to convenience of storing digital data of user, for example, an optical disc. It is cheap, small size, and a large volume. Therefore, it makes user store data conveniently by recording them on the optical disc.

Besides text data and program data, the optical disc is generally used to store multimedia data, for example, audio stream or video stream, and an optical disc player is used to retrieve the data from the optical disc. FIG. 1 is a schematic diagram of an optical disc player system 10 according to the prior art. The optical disc player system 10 includes a micro-controller 11, a servo circuit 12, a motor driving circuit 14, a spindle motor 16, a track controlling circuit 18, a pick-up head 20, an optical disc 22, a non-volatile memory 24 stored a firmware, and a DRAM 26. The micro-controller 11 receives instructions inputted from a computer system to control operation of the optical disc player system 10, and manage operations of the motor driving circuit 14, the track controlling circuit 18, and the pick-up head 20 via the servo circuit 12. The micro-controller 11 also receives source data retrieved by the pick-up head 20, and feedback the digital data to a host 99 via the DRAM 26 as a buffer after decoding the source data. The motor driving circuit 14 controls the rotation speed of the spindle motor 16 to drive rotation of the optical disc 22. The track controlling circuit 18 controls the pick-up head 20 to retrieve the data from the track of the optical disc 22, that is the track controlling circuit 18 controls the pick-up head 20 to progress track seeking and track locking. In addition, the optical disc 22 is a kind of pure data disc, audio disc recording music, or video disc recoding image and music. Generally, the micro-controller 11 comprises a microprocessor for executing a firmware stored in the non-volatile memory 24. In some optical disc player system, the micro-controller 11 further comprises a digital data processor (DSP) cooperated with the microprocessor to enhance the performance of the micro-controller 11. Therefore, the host 99 only sends high-level control commands to the micro-controller 11 of the optical disc player system 10, and the micro-controller 11 executes the corresponding firmware to control operation of the optical disc player system 10 according to the control commands. For instance, when the host 99 needs the data of the optical disc 22, only needs to send an instruction of data processing and assign the address of the data. The micro-controller 11 executes the corresponding firmware of the optical disc player system 10 to achieve the object of data retrieving of the host 99 through operations (such as reach of a particular rotation speed of the spindle motor 16, moving and track locking of the pick-up head 20, and receiving the reflection of the laser from the optical disc 22) of the servo circuit 12, the spindle motor 16, the track controlling circuit 18, and the pick-up head 20.

FIG. 2 is a flow chart of the optical disc 22 retrieved by the optical disc player system 10 shown in FIG. 1. After power on, the micro-controller 11 initials and enters a main function 100; the optical disc player 10 is enabled at this time and is ready to retrieve the optical disc 22, comprising the steps of:

Step 102: receiving instructions inputted from the host 99.

Step 104: judging which type of the instructions received from the host 99; runs step 106 while the instructions are instructions of data processing; runs step 110 while the instructions are others instructions.

Step 106: controlling the motor driving circuit 14 via the servo circuit 12 to drive the spindle motor 16 and set a rotation speed.

Step 108: controlling the track controlling circuit 18 via the servo circuit 12 to drive the pick-up head 20 to retrieve data from a predetermined track; run step 102 while finish this step.

Step 110: executing corresponding action of the instructions; run step 102 while finish.

An application program will transmit the instructions of data accessing to the optical disc player 10 to retrieve data from the optical disc 22 when the user executes the application program and intend to get the data from the optical disc 22. For the video disc, the user utilizes the application program to extract data from the optical disc 22, for example, copy the data and store the data in a hard-disc player of the computer. When the micro-controller 11 of the optical disc player system 10 receives the instructions of data accessing transmitted by the application program, the micro-controller 11 executes the instructions of data accessing according to the firmware to control the motor driving circuit 14, the track controlling circuit 18 and the pick-up head 20. The motor driving circuit 14 drives the spindle motor 16 to set a rotation speed (ex. 10,000 rad/min), the track controlling circuit 18 drives the pick-up head 20 to operate the track seeking and track locking on this optical disc, the pick-up head 20 retrieves the data from the predetermined track of the optical disc 22 and feedbacks the data to the application program of the computer. Therefore, the application program stores the data retrieved from the optical disc 22 into the hard-disc player.

The spindle motor 16 drives corresponding spindle from a static status to a maximum speed supported by the optical disc player system 10 when the motor driving circuit 14 enables the spindle motor 16. For example, the maximum speed of the spindle of a 50× optical disc player tends to 10,000 radians per minute. However, the disc runout of the optical disc 22 will cause vibration and track locking of the pick-up head 20 under high speed rotation, that is easy to get error bits or the pick-up head 20 can not retrieve the data from the optical disc 22 smoothly. Therefore, the micro-controller 11 controls the spindle motor driving circuit 14 via a servo circuit 12 to slow the rotation speed of the spindle motor 16 down, for instance, from 10,000 radian/min to 8,000 radian/min. At this time, the pick-up header will retrieve the data of the optical disc 22 again. When the job of retrieving the data of the optical disc 22 is finished, the micro-controller 11 controls the spindle motor driving circuit 14 via a servo circuit 12 to recovery the rotation speed of the spindle motor 16 to 10,000 radian/min. In other words, the slowdown of the spindle makes a lower rotation speed of the optical disc 22 and a higher successful rate of retrieving data from the optical disc 22 for completing the operation of data accessing.

Considering the user utilizes the application program to play the video data of the optical disc 22, that is, the application program decodes the video data to play on the monitor and speakers equipped in a computer. First, the digital data of the optical disc 22 are read and stored in the computer for playing by media devices or application programs. The application program can also send commands instructions of data extraction (for example, read 10, read 12, read CD, or read CD MSF) to the optical disc player system 10 for data extraction. In the view of the optical disc player system 10, the procedure of data extraction is the same as the steps of copying video data and storing the data in a hard-disk drive. Generally speaking, the retrieving speed of extraction action is higher than the speed of playing action of the optical disc 22. Therefore, the optical disc player 10 has a DRAM 26 as a buffer for storing the data temporarily and the servo circuit 12 can provide the data stored in the buffer to the application program when the pick-up head 20 can't retrieve the data from the optical disc 22.

In one case of playing the video data of the optical disc 22, for some reason, such as low-quality optical disc and the serious vibration of the spindle motor 16, will cause transition of the spindle motor 16 between higher spindle speed and lower spindle speed. The transition results in more and more power consumption. Moreover, the micro-controller 11 wastes time to identify data and results in the image delay or some kind mosaic of the image on the screen.

Similarly, the transition also affects the operation of playing the audio data on the optical disc 22. For example, the user can utilize the application program to extract audio data from the optical disc 22 and store the audio file in the Hard-Disk Besides, and the user also can utilize the application program to play the audio data by retrieving the audio data from the optical disc 22, then the audio data can be transferred to the sound card connected to the optical disc player system 10, the audio digital data can be transferred to analog signal via DAC (Digital-to-analog converter), and the analog signal can be output via speaker connected to the sound card. As described above, the transition between higher spindle speed and lower spindle speed and transition time will cause the analog signal will be terminated temporarily and some kind intermittent sound outputted from the speaker.

In conclusion, the optical disc player system 10 of the prior art can't judge the action of instruction by the computer. Therefore, the optical disc player system 10 of the prior art still retrieves data (video/audio) from the optical disc 22 in the maximum spindle speed and the transition between higher spindle speed and lower spindle speed still results in low quality when playing a video disc or an audio disc.

SUMMARY OF INVENTION

The main objective of the present invention is to provide a method for controlling the data accessing rate of the optical disc player.

The present invention provides a method for controlling data accessing rate of an optical disc player in a computer system, that is, controlling data access rate of retrieving a predetermined track from an optical disc. The method comprises: utilizing the computer system of a host to execute a predetermined data processing, and output a plurality of instructions of data processing to the micro-controller; utilizing the micro-controller to decide whether action of an instruction of a predetermined data processing is an extraction operation or a play operation; controlling a spindle motor and a pick-up head to retrieve data from the optical disc at a first data access rate by the micro-controller while the action of the instruction of the predetermined data processing is an extraction operation; controlling the spindle motor and the pick-up head to retrieve data from the optical disc at a second data access rate which less than the first data access rate by the micro-controller while the action of the instruction of the predetermined data processing is a play operation; and transmitting digital data to the host which executes the predetermined data processing after retrieving the predetermined track from the optical disc.

These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.

BRIEF DESCRIPTION OF DRAWINGS

The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. In the drawings,

FIG. 1 is a schematic diagram of an optical disc player according to a prior art.

FIG. 2 is a flow chart of data retrieving of an optical disc retrieved by an optical disc player as shown in FIG. 1.

FIG. 3 is a first flow chart of this invention for controlling data accessing rate of the optical disc player.

FIG. 4. is a second flow chart of this invention for controlling data accessing rate of the optical disc player.

FIG. 5. is a third flow chart of this invention for controlling data accessing rate of the optical disc player.

FIG. 6. is a fourth flow chart of this invention for controlling data accessing rate of the optical disc player.

FIG. 7. is a fifth flow chart of this invention for controlling data accessing rate of the optical disc player.

FIG. 8. is a sixth flow chart of this invention for controlling data accessing rate of the optical disc player.

DETAILED DESCRIPTION

Referring to Table 1, it shows the setting rule of this invention for an audio disc and a non-audio disc, explained as follow:

(1) Audio Disc:

(a) Extraction operation: The count which the command gaps of instructions of data processing lower than the threshold 40 ms achieves more than 50 during a predetermined cycle, the action of the instruction of data processing is an extraction operation and the data access rate is set to 30×.

(b) Play operation: The count which the command gaps of instructions of data processing greater than the threshold 190 ms achieves more than 4 during a predetermined cycle, the action of the instruction of data processing is a play operation and the data access rate is set to 10×.

(2) Non-Audio Disc:

(a) Copy operation: The count which the command gaps of instructions of data processing lower than the threshold 40 ms achieves more than 200 during a predetermined cycle, the action of the instruction of data processing is a copy operation and the data access rate is set to 40×.

(b) Play operation: The count which the command gaps of instructions of data processing greater than the threshold 150 ms achieves more than 80 during a predetermined cycle, the action of the instruction of data processing is a play operation and the data access rate is set to 10×. TABLE 1 The setting rule of the present invention Command Type Rotation gap of disc Action speed (ms) Count Audio disc Play 10× >190 >4 Extraction 30× <40 >50 Non-audio Play 10× >150 >80 disc Copy 40× <40 >200

In a first embodiment of the present invention, the optical disc player for the non-audio disc changes its rotation speed from a higher data access rate to a lower data access rate or keep the same rate, for example, the lower data access rate is 10× for playing the non-audio disc data.

Referring to FIG. 1. and FIG. 3., FIG. 3. is a first flow chart of this invention for controlling data access rate of the optical disc player, wherein a first data access rate is 40×, a second data access rate is 10×. The present invention for controlling data access rate of the optical disc player applies to the optical disc player system as shown in FIG. 1, therefore, no longer gives unnecessary detail in this. The present invention for controlling data access rate of the optical disc player, comprising the steps of:

Step 200: The optical disc player 10 initials in a working section to make enable itself.

Step 202: The optical disc player 10 presets the first data access rate (higher data access rate, for example 40×) to access data.

Step 204: The host outputs a polarity of instructions of data processing to the micro-controller 11 for retrieving the data from the optical disc 22; the optical disc player 10 processes each one in sequence.

Step 206: the micro-controller 11 executes the firmware of the optical disc player 10 and calculates continuously a polarity of command gaps between instructions of data processing.

Step 208: The micro-controller 11 checks whether the command gap between two adjacent instructions is larger than a threshold value or not; if yes, run step 210; if no, run step 212.

Step 210: The micro-controller 11 increments a total times which the command gap is greater than the threshold value by one during the predetermined cycle.

Step 212: The micro-controller 11 judges whether the total times greater than a judging value; if yes, the data processing is the play operation of the non-audio disc and run step 214; if no, run step 216.

Step 214: The micro-controller controls the spindle motor 16 via the servo circuit 12 in the second data access rate, for example 10×, to retrieve the data from the optical disc 22, wherein the second data access rate is lower than the first data access rate; run step 204 while accomplish the data accessing.

Step 216: The micro-controller controls the spindle motor 16 via the servo circuit 12 to maintain the first data access rate; run step 204 while accomplish the data accessing.

The detail of above is as follows. The optical disc player 10 initials in a working section to make enable itself, in one embodiment, the working section relates to power on until power off. In another embodiment, the working section relates to power on, load an optical disc into the optical disc player until unload the optical disc, power off. After initial, the micro-controller 11 sets the rotation speed of the spindle motor 16 via the servo circuit 12 to the corresponding highest speed supported by the optical disc player system 10, that is, the linear velocity of a predetermined track on the optical disc 22 corresponds to the first data access rate (step 202). A polarity of instructions of data processing outputted to the micro-controller 11 when the host wants to access the data of the optical disc 22, that is, the micro-controller 11 receives the instructions of data processing during a predetermined cycle to retrieve the data from the optical disc 22 (step 204), then the micro-controller 11 calculates continuously command gaps between instructions of data processing (step 206), judges whether each one command gap larger than the threshold (step 208), and counts the total times which the command gaps greater than the threshold during the predetermined cycle (step 210).

Considering the video disc, audio disc, or multi-media disc, when the host executes an application program to access the data of the optical disc 22, for example, copying the data of the optical disc 22 and store in a hard disc player, the instructions of data accessing for command the micro-controller 11 to drive the servo circuit 12 for controlling the pick-up head 20 to retrieve the data from the optical disc 22 and feedback to the host. The application program does not need to perform complicated process on the data. It only needs to control the storage of data into the hard disc player. Therefore, the command gaps between the continuous instructions of data accessing outputted from the host to the micro-controller 11 are short. For example, the command gaps are usually lower than 40 milliseconds. On the contrary, when the host executes an application program to play the data of the optical disc 22, for example, the application program retrieves the data from the optical disc 22, decodes the data, performs image processing, and outputs to a speaker or a monitor. It needs to consider the processing time for the calculation of the application program. Therefore, the command gaps between the continuous instructions of data accessing outputted from the host to the micro-controller 11 are long. For example, the command gaps are usually longer than 150 milliseconds.

As described above, the total times will be greater than a judging value when the host executes the application program to play the data of the optical disc 22. On the contrary, the total times will be lower than a judging value when the host executes the application program to retrieve the data from the optical disc 22 (step 212). Consequently, the micro-controller 11 controls the spindle motor 16 via the servo circuit 12 to operate in a lower rotation speed supported by the optical disc player 10, and make the linear velocity of the predetermined track on the optical disc 22 corresponds to the second data access rate when the total times will be greater than a judging value, wherein the second data access rate is lower than the first data access rate (step 214). In addition, the rotation speed of the spindle motor 16 need not change for keeping the linear velocity of the predetermined track on the optical disc 22 as the first data access rate (step 216).

In the first embodiment of the present invention, the command gaps between continuous instructions of data processing outputted by the host are greater than 150 milliseconds when playing the video data. However, the command gaps between continuous instructions of data processing outputted by the host are greater than 190 milliseconds when playing the audio data. Therefore, for the video disc in this embodiment, the micro-controller 11 counts the command gaps greater than 150 milliseconds and judges whether these command gaps are more than 65 during 30 seconds in steps 208-212. For the audio disc in this embodiment, the micro-controller 11 counts the command gaps greater than 190 milliseconds and judges whether these command gaps are more than 4 during 1.5 seconds in steps 208-212. For this reason, the micro-controller 11 can decide the application program plays the video data or the audio data. Furthermore, the application program can retrieve the data in the second data access rate to avoid low quality of playing caused by the change of the rotation speed of the spindle motor used as habit. In addition, this embodiment cannot only applied to an optical disc player with constant linear velocity architecture but also an optical disc player with constant angular velocity architecture.

In a second embodiment of the present invention, an optical disc player for the non-audio disc changes its rotation speed from a higher data access rate to another higher data access rate or keep the same rate, for example, the another higher data access rate is 40× for copying the non-audio disc data.

Referring to FIG. 1. and FIG. 4, FIG. 4. is a second flow chart of this invention for controlling data access rate of the optical disc player. The present invention for controlling data access rate of the optical disc player, comprising the steps of:

Step 300: The optical disc player 10 initials in a working section to make enable itself.

Step 302: The optical disc player 10 presets a first data access rate to access data.

Step 304: The host outputs a polarity of instructions of data processing to the micro-controller 11 for retrieving the data from the optical disc 22; the optical disc player 10 processes each one in sequence.

Step 306: the micro-controller 11 executes the firmware of the optical disc player 10 and calculates continuously a polarity of command gaps between instructions of data processing.

Step 308: The micro-controller 11 checks whether the command gap between two adjacent instructions is lower than a threshold value or not; if yes, run step 310; if no, run step 312.

Step 310: The micro-controller 11 increments a total times which the command gap is smaller than the threshold value by one during the predetermined cycle.

Step 312: The micro-controller 11 judges whether the total times greater than a judging value; if yes, run step 314; if no, run step 316.

Step 314: The micro-controller controls the spindle motor 16 via the servo circuit 12 to maintain the first data access rate; run step 304 while accomplish the data accessing.

Step 316: The micro-controller controls the spindle motor 16 via the servo circuit 12 in the second data access rate to retrieve the data from the optical disc 22, wherein the second data access rate is higher than the first data access rate; run step 304 while accomplish the data accessing.

The steps described above are similar to the flow shown in FIG. 3. The main difference is in steps 308-310, and the micro-controller 11 counts the total times that the command gaps lower than the threshold during the predetermined cycle. For the video disc, the total times will be larger than a judging value when the host executes the application program to extract data from the video disc, for example, copy the data and store the data in a hard-disc player (step 312). In this situation, the rotation speed of the spindle motor 16 does not need to adjust, but keep the linear velocity of the predetermined track on the optical disc 22 as the first data access rate (step 314). On the contrary, the total times will be lower than a judging value when the host executes the application program to play data from the video disc (step 312), and the micro-controller 11 controls the spindle motor 16 via the servo circuit 12 to operate in a lower rotation speed supported by the optical disc player 10, and make the linear velocity of the predetermined track on the optical disc 22 corresponds to a second data access rate (step 316), wherein the second data access rate is lower than the first data access rate.

In the second embodiment of the present invention, the command gaps between continuous instructions of data processing outputted by the host are lower than 150 milliseconds when playing the video data. However, the command gaps between continuous instructions of data processing outputted by the host are lower than 190 milliseconds when playing the audio data. Therefore, for the video disc in this embodiment, the micro-controller 11 counts the command gaps greater than 150 milliseconds and judges whether these command gaps are more than 65 during 30 seconds in steps 208-212. For the audio disc in this embodiment, the micro-controller 11 counts the command gaps greater than 190 milliseconds and judges whether these command gaps are more than 4 during 1.5 seconds in steps 208-212. For this reason, the micro-controller 11 can decide the application program plays the video data or the audio data. Furthermore, the application program can retrieve the data in the second data access rate to avoid low quality of playing caused by the change of the rotation speed of the spindle motor used as habit. In addition, this embodiment cannot only applied to an optical disc player with constant linear velocity architecture but also an optical disc player with constant angular velocity architecture.

In a third embodiment of the present invention, an optical disc player for the audio disc changes its rotation speed from a lower data access rate to another lower data access rate or keep the same rate, for example, the lower data access rate is 10× for retrieving the audio disc data.

Referring to FIG. 1., FIG. 3 and FIG. 5. FIG. 5. is a third flow chart of this invention for controlling data access rate of the optical disc player. The present invention for controlling data access rate of the optical disc player, comprising the steps of:

Step 400: The optical disc player 10 initials in a working section to make enable itself.

Step 402: The optical disc player 10 presets a second data access rate to access data.

Step 404: The host outputs a polarity of instructions of data processing to the micro-controller 11 for retrieving the data from the optical disc 22; the optical disc player 10 processes each one in sequence.

Step 406: the micro-controller 11 executes the firmware of the optical disc player 10 and calculates continuously a polarity of command gaps between instructions of data processing.

Step 408: The micro-controller 11 checks whether the command gap between two adjacent instructions is greater than a threshold value or not; if yes, run step 410; if no, run step 412.

Step 410: The micro-controller 11 increments a total times which the command gap is greater than the threshold value by one during the predetermined cycle.

Step 412: The micro-controller 11 judges whether the total times greater than a judging value; if yes, run step 414; if no, run step 416.

Step 414: The micro-controller controls the spindle motor 16 via the servo circuit 12 to maintain the second data access rate; run step 404 while accomplish the data accessing.

Step 416: The micro-controller controls the spindle motor 16 via the servo circuit 12 in a first data access rate to retrieve the data from the optical disc 22, wherein the first data access rate is greater than the second data access rate; run step 404 while accomplish the data accessing.

The steps described above are similar to the flow shown in FIG. 3. However, a default data access rate is the second data access rate that is the lower data access rate in the flow shown in FIG. 5. The spindle motor 16 starts to speed the spindle up, which causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the second data access rate. Therefore, the total times is not greater than the judging value (step 410) when the host executes the application program to extract the audio data of the optical disc 22, and the micro-controller 11 controls the motor driving circuit 14 via the servo circuit 12 to make the spindle motor 16 operates in a higher rotation speed supported by the optical disc player system 10. It causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the first data access rate (step 416), wherein the first data access rate is greater than the second data access rate. In addition, the rotation speed of the spindle motor 16 need not change and keeps the second data access rate when the total times is greater than the judging value (step 414).

In the third embodiment of the present invention, the command gaps between continuous instructions of data processing outputted by the host are smaller than 40 milliseconds when extracting the audio data. Therefore, for the audio disc in this embodiment, the micro-controller 11 counts the command gaps greater than 190 milliseconds and judges whether these command gaps are more than 4 during 1.5 seconds in steps 408-412. For this reason, the micro-controller 11 can decide the application program plays or extracts the audio data. Furthermore, the application program can retrieve the data by keeping the second data access rate to avoid low quality of playing caused by the change of the rotation speed of the spindle motor used as habit. In addition, this embodiment cannot only applied to an optical disc player with constant linear velocity architecture but also an optical disc player with constant angular velocity architecture.

In a forth embodiment of the present invention, an optical disc player for the audio disc changes its rotation speed from a lower data access rate to a higher data access rate or keep the same rate, for example, the higher data access rate is 30× for retrieving the audio disc data.

Referring to FIG. 1., FIG. 5 and FIG. 6. FIG. 6. is a forth flow chart of this invention for controlling data access rate of the optical disc player. The present invention for controlling data access rate of the optical disc player, comprising the steps of:

Step 500: The optical disc player 10 initials in a working section to make enable itself.

Step 502: The optical disc player 10 presets a second data access rate to access data.

Step 504: The host outputs a polarity of instructions of data processing to the micro-controller 11 for retrieving the data from the optical disc 22; the optical disc player 10 processes each one in sequence.

Step 506: the micro-controller 11 executes the firmware of the optical disc player 10 and calculates continuously a polarity of command gaps between instructions of data processing.

Step 508: The micro-controller 11 checks whether the command gap between two adjacent instructions is smaller than a threshold value or not; if yes, run step 510; if no, run step 512.

Step 510: The micro-controller 11 increments a total times which the command gap is smaller than the threshold value by one during the predetermined cycle.

Step 512: The micro-controller 11 judges whether the total times greater than a judging value; if yes, run step 514; if no, run step 516.

Step 514: The micro-controller controls the spindle motor 16 via the servo circuit 12 in a first data access rate to retrieve the data from the optical disc 22, wherein the first data access rate is greater than the second data access rate; run step 504 while accomplish the data accessing.

Step 516: The micro-controller controls the spindle motor 16 via the servo circuit 12 to maintain the second data access rate; run step 504 while accomplish the data accessing.

The steps described above are similar to the flow shown in FIG. 5. The spindle motor 16 starts to speed the spindle up, which causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the second data access rate. Therefore, the total times is not greater than the judging value (step 510) when the host executes the application program to extract the audio data of the optical disc 22, and the micro-controller 11 controls the motor driving circuit 14 via the servo circuit 12 to make the spindle motor 16 operates in a higher rotation speed supported by the optical disc player system 10. It causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the first data access rate (step 514), wherein the first data access rate is greater than the second data access rate. In addition, the rotation speed of the spindle motor 16 need not change and keeps the second data access rate when the total times is smaller than the judging value (step 516).

In the forth embodiment of the present invention, the command gaps between continuous instructions of data processing outputted by the host are smaller than 40 milliseconds when extracting the audio data. Therefore, for the audio disc in this embodiment, the micro-controller 11 counts the command gaps greater than 190 milliseconds and judges whether these command gaps are more than 4 during 1.5 seconds in steps 508-512. For this reason, the micro-controller 11 can decide the application program plays or extracts the audio data. Furthermore, the application program can retrieve the data by keeping the second data access rate to avoid low quality of playing caused by the change of the rotation speed of the spindle motor used as habit. In addition, this embodiment cannot only applied to an optical disc player with constant linear velocity architecture but also an optical disc player with constant angular velocity architecture.

In a fifth embodiment of the present invention, an optical disc player changes its rotation speed from a higher data access rate to a lower data access rate or keep the same rate.

Referring to FIG. 1. and FIG. 7. FIG. 7. is a fifth flow chart of this invention for controlling data access rate of the optical disc player. The present invention for controlling data access rate of the optical disc player, comprising the steps of:

Step 600: The optical disc player 10 initials in a working section to make enable itself.

Step 602: The optical disc player 10 presets a first data access rate to access data.

Step 604: The host outputs a polarity of instructions of data processing to the micro-controller 11 for retrieving the data from the optical disc 22; the optical disc player 10 processes each one in sequence.

Step 606: the micro-controller 11 executes the firmware of the optical disc player 10, calculates continuously a polarity of command gaps between instructions of data processing and gets an average of the command gaps during a predetermined cycle.

Step 608: The micro-controller 11 judges whether the average greater than a judging value; if yes, run step 610; if no, run step 612.

Step 610: The micro-controller controls the spindle motor 16 via the servo circuit 12 in a second data access rate to retrieve the data from the optical disc 22, wherein the second data access rate is smaller than the first data access rate; run step 604 while accomplish the data accessing.

Step 612: The micro-controller controls the spindle motor 16 via the servo circuit 12 to maintain the first data access rate; run step 604 while accomplish the data accessing.

The details of above steps are as follows: The micro-controller 11 sets the spindle motor 16 via the servo circuit 12 the higher rotation speed supported by the optical disc player system 10, which causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the first data access rate (step 602). The micro-controller 11 receives a polarity of instructions of data accessing (step 604) when the host executes the application program to access the data of the optical disc 22, and calculates continuously a polarity of command gaps between instructions of data processing and gets an average of the command gaps during a predetermined cycle (step 606). Then, the average of the command gaps is greater than a judging value when the application program executed by the host plays the data of the optical disc. The average of the command gaps, however, is smaller than the judging value when the application program executed by the host extracts the data of the optical disc (step 608). Therefore, the micro-controller 11 controls the motor driving circuit 14 via the servo circuit 12 to make the spindle motor 16 operates in a lower rotation speed supported by the optical disc player system 10 when the average is greater than the judging value. It causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the second data access rate (step 610), wherein the second data access rate is lower than the first data access rate. In addition, the rotation speed of the spindle motor 16 need not change and keeps the first data access rate when the average is smaller than the judging value (step 612). And this embodiment cannot only applied to an optical disc player with constant linear velocity architecture but also an optical disc player with constant angular velocity architecture.

In a sixth embodiment of the present invention, an optical disc player changes its rotation speed from a lower data access rate to another lower data access rate or keep the same rate.

Referring to FIG. 1., FIG. 7. and FIG. 8. FIG. 8. is a sixth flow chart of this invention for controlling data access rate of the optical disc player. The present invention for controlling data access rate of the optical disc player, comprising the steps of:

Step 700: The optical disc player 10 initials in a working section to make enable itself.

Step 702: The optical disc player 10 presets a second data access rate to access data.

Step 704: The host outputs a polarity of instructions of data processing to the micro-controller 11 for retrieving the data from the optical disc 22; the optical disc player 10 processes each one in sequence.

Step 706: the micro-controller 11 executes the firmware of the optical disc player 10, calculates continuously a polarity of command gaps between instructions of data processing and gets an average of the command gaps during a predetermined cycle.

Step 708: The micro-controller 11 judges whether the average greater than a judging value; if yes, run step 710; if no, run step 712.

Step 710: The micro-controller controls the spindle motor 16 via the servo circuit 12 to maintain the second data access rate; run step 704 while accomplish the data accessing.

Step 712: The micro-controller controls the spindle motor 16 via the servo circuit 12 in a first data access rate to retrieve the data from the optical disc 22, wherein the first data access rate is greater than the second data access rate; run step 704 while accomplish the data accessing.

The steps described above are similar to the flow shown in FIG. 7. However, a default data access rate is the second data access rate that is the lower data access rate in the flow shown in FIG. 8. The spindle motor 16 starts to speed the spindle up, which causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the second data access rate. Therefore, the average is greater than the judging value (step 706) when the host executes the application program to extract the audio data or the video data, and the rotation speed of the spindle motor 16 need not change and keeps the second data access rate when the total times is greater than the judging value (step 710). On the contrary, the micro-controller 11 controls the motor driving circuit 14 via the servo circuit 12 to make the spindle motor 16 operates in a higher rotation speed supported by the optical disc player system 10 when the application program executed by the host just extracts the data of the optical disc. It causes that the linear velocity of the predetermined track on the optical disc 22 corresponds to the first data access rate (step 712), wherein the first data access rate is greater than the second data access rate. In addition, this embodiment cannot only applied to an optical disc player with constant linear velocity architecture but also an optical disc player with constant angular velocity architecture.

The present invention relates to a method for controlling the data access rate of an optical disc player. Comparing with the prior art, this invention comprises the steps of: judging whether a data processing executed by an application program is an extraction operation or a play operation, driving linear velocity of a predetermined track to correspond to a higher data access rate by a spindle motor when the data processing is the extraction operation, and driving linear velocity of a predetermined track to correspond to a lower data access rate by the spindle motor when the data processing is the play operation. Therefore, the rotation speed of the spindle motor does not switch as frequent as the prior art when a user executes the application program of a host to play the video data or the audio data of the optical disc, and the pick-up head can retrieve the data from the optical disc stably. In other words, the present invention for controlling the data access rate of an optical disc player causes better performance when operation of the optical disc player is playing, further gives the competitive advantage.

Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims. 

1. A method for controlling data access rate of an optical disc player in a computer system, the method utilizing a micro-controller to control data access rate of retrieving a predetermined track from an optical disc, comprising the steps of: utilizing the computer system of a host to execute a predetermined data processing, and output a plurality of instructions of data processing to the micro-controller; deciding by the micro-controller whether action of an instruction of a predetermined data processing is an extraction operation or a play operation; controlling a spindle motor and a pick-up head to retrieve data from the optical disc at a first data access rate by the micro-controller while the action of the instruction of the predetermined data processing is an extraction operation; controlling the spindle motor and the pick-up head to retrieve data from the optical disc at a second data access rate which less than the first data access rate by the micro-controller while the action of the instruction of the predetermined data processing is a play operation; and transmitting digital data to the host which executes the predetermined data processing after retrieving the predetermined track from the optical disc.
 2. The method of claim 1, wherein utilizing the micro-controller to decide whether action of the instruction of the predetermined data processing is the extraction operation or the play operation, comprising: utilizing the micro-controller to calculate continuously a polarity of command gaps of instructions of data processing outputted to the optical disc player by the host; and utilizing the micro-controller to compare command gap with a threshold and count total times of the command gaps less than the threshold during a predetermined cycle.
 3. The method of claim 2, wherein utilizing the micro-controller to decide whether action of the instruction of the predetermined data processing is the extraction operation or the play operation, further comprising: utilizing the micro-controller to compare the total times with a judging value, and deciding the predetermined data processing is the extraction operation when the total times greater than the judging value; otherwise, deciding the predetermined data processing is the play operation.
 4. The method of claim 1, wherein utilizing the micro-controller to decide whether action of the instruction of the predetermined data processing is the extraction operation or the play operation, comprising: utilizing the micro-controller to calculate continuously a polarity of command gaps of instructions of data processing outputted to the optical disc player by the host; and utilizing the micro-controller to compare command gap with a threshold and count total times of the command gaps greater than the threshold during a predetermined cycle.
 5. The method of claim 4, wherein utilizing the micro-controller to decide whether action of the instruction of the predetermined data processing is the extraction operation or the play operation, further comprising: utilizing the micro-controller to compare the total times with a judging value, and deciding the predetermined data processing is the extraction operation when the total times less than the judging value; otherwise, deciding the predetermined data processing is the play operation.
 6. The method of claim 1, further comprising: setting the first data access rate for the optical disc player by the micro-controller before the computer system of the host outputs a polarity of instructions of data processing to the micro-controller.
 7. The method of claim 1, further comprising: setting the second data access rate for the optical disc player by the micro-controller before the computer system of the host outputs a polarity of instructions of data processing to the micro-controller.
 8. The method of claim 1, wherein the optical disc player operating in constant linear velocity (CLV).
 9. The method of claim 1, wherein the optical disc player operating in constant angular velocity (CAV).
 10. The method of claim 1, wherein utilizing the micro-controller to decide whether action of the instruction of the predetermined data processing is the extraction operation or the play operation, comprising: utilizing the micro-controller to calculate continuously a polarity of command gaps of instructions of data processing outputted to the optical disc player by the host; and utilizing the micro-controller to calculate an average value of the command gaps during a predetermined cycle.
 11. The method of claim 10, wherein utilizing the micro-controller to decide whether action of the instruction of the predetermined data processing is the extraction operation or the play operation, further comprising: utilizing the micro-controller to compare the average value with a judging value, and deciding the predetermined data processing is the play operation when the total times greater than the judging value; otherwise, deciding the predetermined data processing is the extraction operation.
 12. The method of claim 1, wherein utilizing the micro-controller to decide whether action of the instruction of the predetermined data processing is the extraction operation or the play operation, the steps accomplished by the micro-controller executes a firmware of the optical disc player.
 13. A method for adjusting a data access rate of retrieving from an optical disc by an optical disc player, comprising the steps of: measuring each command gap between adjacent instructions of data processing; judging action of the instructions of data processing of the optical disc player by a predetermined rule, wherein the predetermined rule is to measure a first count which the command gaps greater than a first threshold during a predetermined cycle and a second count which the command gaps less than a second threshold during a predetermined cycle, presetting a first area for definition of play operation and a second area for definition of extraction operation in a coordinate axis, X-axis is command gap and Y-axis is total count, the predetermined rule is to judge the action of the instructions of data processing according to the command gaps, the first count and the second count; and adjusting the data access rate of optical disc player according to the action of the instructions of data processing, controlling the optical disc player to retrieve data from the optical disc at a first data access rate while the action of the instruction is extraction operation, controlling the optical disc player to retrieve data from the optical disc at a second data access rate which less than the first data access rate while the action of the instruction is play operation.
 14. The method of claim 13, wherein the predetermined rule further comprises the steps of: judging the action of instructions of data processing to be play operation while the first threshold and the first count are located in the first area.
 15. The method of claim 14, wherein the setting range of the first threshold is about 170˜120 ms and the setting range of the first count is about 10˜70, while format of the optical disc is audio type.
 16. The method of claim 14, wherein the setting range of the first threshold is about 130˜200 ms and the setting range of the first count is about 50˜110, while format of the optical disc is non-audio type.
 17. The method of claim 13, wherein the predetermined rule further comprises the steps of: judging the action of instructions of data processing to be extraction operation while the second threshold and the second count are located in the second area.
 18. The method of claim 17, wherein the setting range of the second threshold is about 10˜45 ms and the setting range of the first count is about 40˜80, while format of the optical disc is audio type.
 19. The method of claim 17, wherein the setting range of the second threshold is about 10˜45 ms and the setting range of the first count is about 180˜300, while format of the optical disc is non-audio type.
 20. An apparatus for controlling data access rate of an optical disc player, comprising: a measuring circuit for measuring each command gap between adjacent instructions of data processing; a judging circuit for judging the action of the instructions of data processing according to a predetermined rule, wherein the predetermined rule is to measure a first count which the command gaps greater than a first threshold during a predetermined cycle and a second count which the command gaps less than a second threshold during a predetermined cycle, presetting a first area for definition of play operation and a second area for definition of extraction operation in a coordinate axis, X-axis is command gap and Y-axis is total count, the predetermined rule is to judge the action of the instructions of data processing according to the command gaps, the first count and the second count, and an adjusting circuit for adjusting the data access rate of optical disc player according to the action of the instructions of data processing, controlling the optical disc player to retrieve data from the optical disc at a first data access rate while the action of the instruction is extraction operation, controlling the optical disc player to retrieve data from the optical disc at a second data access rate which less than the first data access rate while the action of the instruction is play operation.
 21. An apparatus of claim 20, wherein the action of instructions of data processing is judged to be play operation while the first threshold and the first count are located in the first area; the action of instructions of data processing is judged to be extraction operation while the second threshold and the second count are located in the second area.
 22. An apparatus of claim 20, wherein the firs threshold is greater than the second threshold. 